var Anim = (function () {
    function Anim() {
    }

    Anim.prototype.changeStyle = undefined;
    Anim.prototype.start = function () {
        if (this.changeStyle && typeof this.changeStyle === 'function') {
            this.timer = setInterval(this.changeStyle, 3);
        }
    };
    Anim.prototype.end = function () {
        clearInterval(this.timer);
    }
    return Anim;
}());